package com.chzc.fm.duotin.bean.home;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/7/6.
 */
public class PlayList2Data {


    /**
     * id : 1684828
     * real_name : 寒白声惑
     * is_v : 1
     * image_url : http://c3.duotin.com/i1/DT/ANrbW73R5eBCA4qDLZ-W05XKON-J8-z55YBKg1Q_z2c.jpg
     * followed_num : 39
     * is_followed : 0
     */

    private PodcastBean podcast;
    /**
     * id : 86915
     * describe : 大师经典，格调美文。——这一刻，世界安静了。
     * title : 寒白悦读
     * categories : ["心理情感","文艺"]
     * image_url : http://c3.duotin.com/i1/DT/oBwx3kgbd6PViLUWU4LdYsMiRVHbbT_Cl1xKj94D7Qw.jpg
     * content_num : 19
     * subscribe_num : 79
     * play_num : 35673
     * last_updated_time : 2016-07-04
     * updated_status : 1
     * tag_image_url :
     * voice_url :
     * is_subscribe : 0
     * new_content_num : 0
     */

    private AlbumBean album;
    /**
     * page : {"page_size":100,"page":1,"total_num":19,"total_page":1,"sort_type":0}
     * data_list : [{"id":1461946,"title":"看取莲花净（雪小禅）","duration":"00:09:13","album_id":86915,"display_order":"99982","play_num":1722,"audio_32_size":"4423351","audio_64_size":4423351,"audio_32_url":"http://c203.duotin.com/M04/45/87/wKgB5Vd6hamAdldXAEN-tzrA6_g755.mp3","audio_64_url":"http://c203.duotin.com/M04/45/87/wKgB5Vd6hamAdldXAEN-tzrA6_g755.mp3","image_url":"http://c3.duotin.com/i1/DT/-DJ97pO4fVALOIUxg59xXUnqOJ-EwEVCLHGdJs3TY_A.jpg","is_new":0,"is_collect":0},{"id":1459982,"title":"目送（龙应台）","duration":"00:07:31","album_id":86915,"display_order":"99983","play_num":2119,"audio_32_size":"3605558","audio_64_size":3605558,"audio_32_url":"http://c203.duotin.com/M04/45/11/wKgB5Vd4lC2AMFMFADcENlUEDeM343.mp3","audio_64_url":"http://c203.duotin.com/M04/45/11/wKgB5Vd4lC2AMFMFADcENlUEDeM343.mp3","image_url":"http://c3.duotin.com/i1/DT/ZTJwJeh3tMXZy2rZJWchGxptsj9-YGn7p3pG7AnqNgs.jpg","is_new":0,"is_collect":0},{"id":1458531,"title":"水墨江山（枫林主人）","duration":"00:07:31","album_id":86915,"display_order":"99984","play_num":1604,"audio_32_size":"3605767","audio_64_size":3605767,"audio_32_url":"http://c203.duotin.com/M04/44/C5/wKgB5Vd3O7KAHdovADcFBxa6pk8987.mp3","audio_64_url":"http://c203.duotin.com/M04/44/C5/wKgB5Vd3O7KAHdovADcFBxa6pk8987.mp3","image_url":"http://c3.duotin.com/i1/DT/B6cdmtSHx-ZPhH-b3p87cnG6uFgA7tTF9QUGhBC5GjE.jpg","is_new":0,"is_collect":0},{"id":1457411,"title":"笔尖下的深刻（村上春树）","duration":"00:05:40","album_id":86915,"display_order":"99985","play_num":1812,"audio_32_size":"2721784","audio_64_size":2721784,"audio_32_url":"http://c203.duotin.com/M03/44/86/wKgB5Vd1-cuAcGgPACmH-JQFEWs728.mp3","audio_64_url":"http://c203.duotin.com/M03/44/86/wKgB5Vd1-cuAcGgPACmH-JQFEWs728.mp3","image_url":"http://c3.duotin.com/i1/DT/0qFtwbPctj0EzO2f55ZOSLZUA2qJScymLX3iQ9hmDyg.jpg","is_new":0,"is_collect":0},{"id":1455460,"title":"豹王之死（陈俊）","duration":"00:13:06","album_id":86915,"display_order":"99986","play_num":1698,"audio_32_size":"6291573","audio_64_size":6291573,"audio_32_url":"http://c203.duotin.com/M04/44/19/wKgB5Vd0d6qAY7gCAGAAdSSSGXI688.mp3","audio_64_url":"http://c203.duotin.com/M04/44/19/wKgB5Vd0d6qAY7gCAGAAdSSSGXI688.mp3","image_url":"http://c3.duotin.com/i1/DT/0u3Ij8DLScvwruZXU5o7GerHbaUoKv_zsvRq38l4E8A.jpg","is_new":0,"is_collect":0},{"id":1454270,"title":"花落的声音（张爱玲）","duration":"00:05:12","album_id":86915,"display_order":"99987","play_num":1653,"audio_32_size":"2496295","audio_64_size":2496295,"audio_32_url":"http://c203.duotin.com/M00/43/D6/wKgB5VdzReyAaRGmACYXJzSbBKk826.mp3","audio_64_url":"http://c203.duotin.com/M00/43/D6/wKgB5VdzReyAaRGmACYXJzSbBKk826.mp3","image_url":"http://c3.duotin.com/i1/DT/nckpnuJB_-elb5Nu_kHi6GFSkLhCLEUm7dranddjpNk.jpg","is_new":0,"is_collect":0},{"id":1453442,"title":"永远，我等（余光中）","duration":"00:03:12","album_id":86915,"display_order":"99988","play_num":2077,"audio_32_size":"1540004","audio_64_size":1540004,"audio_32_url":"http://c203.duotin.com/M02/43/9D/wKgB5Vdx-_yAfb_VABd_pA7dx9g415.mp3","audio_64_url":"http://c203.duotin.com/M02/43/9D/wKgB5Vdx-_yAfb_VABd_pA7dx9g415.mp3","image_url":"http://c3.duotin.com/i1/DT/zgAInWhqSPFTqOUS7kHiQHDgHZxrW81xGmoniDkPrFk.jpg","is_new":0,"is_collect":0},{"id":1452035,"title":"寒色（龙应台）","duration":"00:09:21","album_id":86915,"display_order":"99989","play_num":2154,"audio_32_size":"4486240","audio_64_size":4486240,"audio_32_url":"http://c203.duotin.com/M03/43/34/wKgB5Vdv07GANwCIAER0YGbyY0o513.mp3","audio_64_url":"http://c203.duotin.com/M03/43/34/wKgB5Vdv07GANwCIAER0YGbyY0o513.mp3","image_url":"http://c3.duotin.com/i1/DT/aiJwpmrrEXPTBbFGM0f8-KZjqh8CO3GV37Y5CThKSBc.jpg","is_new":0,"is_collect":0},{"id":1450948,"title":"爱如佛法（枫林主人）","duration":"00:06:26","album_id":86915,"display_order":"99990","play_num":1954,"audio_32_size":"3086244","audio_64_size":3086244,"audio_32_url":"http://c203.duotin.com/M04/43/0E/wKgB5VdvNRaAAAnCAC8XpNpk_ZU216.mp3","audio_64_url":"http://c203.duotin.com/M04/43/0E/wKgB5VdvNRaAAAnCAC8XpNpk_ZU216.mp3","image_url":"http://c3.duotin.com/i1/DT/5E3lSOYYyXsQ5mke5rygvsWqguF7PK8quUteZ02cg7A.jpg","is_new":0,"is_collect":0},{"id":1443183,"title":"风中的鸟巢（雪小禅）","duration":"00:11:35","album_id":86915,"display_order":"99991","play_num":1811,"audio_32_size":"5563334","audio_64_size":5563334,"audio_32_url":"http://c203.duotin.com/M00/41/4A/wKgB5VdlO9SADkGTAFTjxp-NA3o320.mp3","audio_64_url":"http://c203.duotin.com/M00/41/4A/wKgB5VdlO9SADkGTAFTjxp-NA3o320.mp3","image_url":"http://c3.duotin.com/i1/DT/d14joOi6rSZeFC93F91e2GFZjK1VyKRJ18GxUVqWm9w.jpg","is_new":0,"is_collect":0},{"id":1443181,"title":"彼岸（枫林主人）","duration":"00:03:20","album_id":86915,"display_order":"99992","play_num":1786,"audio_32_size":"1599772","audio_64_size":1599772,"audio_32_url":"http://c203.duotin.com/M02/41/47/wKgB5VdlN-GAN4-oABhpHAQ3E0Y348.mp3","audio_64_url":"http://c203.duotin.com/M02/41/47/wKgB5VdlN-GAN4-oABhpHAQ3E0Y348.mp3","image_url":"http://c3.duotin.com/i1/DT/JxzaGEAVQ00h5KMyNOdktWV6N_tSVFfgAM8TBjpElUk.jpg","is_new":0,"is_collect":0},{"id":1437918,"title":"扬州的夏日（朱自清）","duration":"00:11:53","album_id":86915,"display_order":"99993","play_num":1681,"audio_32_size":"5700788","audio_64_size":5700788,"audio_32_url":"http://c203.duotin.com/M02/40/21/wKgB5Vde1ZaAfsfxAFb8tPXqZ-c830.mp3","audio_64_url":"http://c203.duotin.com/M02/40/21/wKgB5Vde1ZaAfsfxAFb8tPXqZ-c830.mp3","image_url":"http://c3.duotin.com/i1/DT/K1LeMuHPw0GcEd_q9x7wQU7kyftEGn3HYhCORDksBr4.jpg","is_new":0,"is_collect":0},{"id":1436153,"title":"桃花误（许冬林）","duration":"00:10:44","album_id":86915,"display_order":"99994","play_num":1862,"audio_32_size":"5152007","audio_64_size":5152007,"audio_32_url":"http://c203.duotin.com/M02/3F/C0/wKgB5VddBcWAW11KAE6dBzRMUE0048.mp3","audio_64_url":"http://c203.duotin.com/M02/3F/C0/wKgB5VddBcWAW11KAE6dBzRMUE0048.mp3","image_url":"http://c3.duotin.com/i1/DT/H4zj_J1bRIm4c7L-FpTFjqBEbZ9qGN6lxqmEUzH0R_M.jpg","is_new":0,"is_collect":0},{"id":1436047,"title":"乌镇年华（白落梅）","duration":"00:13:50","album_id":86915,"display_order":"99995","play_num":1891,"audio_32_size":"6640834","audio_64_size":6640834,"audio_32_url":"http://c203.duotin.com/M02/3F/BA/wKgB5Vdc5WWAQuCUAGVUwtQEKlE318.mp3","audio_64_url":"http://c203.duotin.com/M02/3F/BA/wKgB5Vdc5WWAQuCUAGVUwtQEKlE318.mp3","image_url":"http://c3.duotin.com/i1/DT/YQRFSeQ4xfog2SpEok3bhAylaXRd3SETV6MyUKV0l_k.jpg","is_new":0,"is_collect":0},{"id":1432393,"title":"翡冷翠山居闲话（徐志摩）","duration":"00:09:48","album_id":86915,"display_order":"99996","play_num":1849,"audio_32_size":"4701736","audio_64_size":4701736,"audio_32_url":"http://c203.duotin.com/M03/3E/A3/wKgB5VdWwFmAHJ9vAEe-KIM5Fa0485.mp3","audio_64_url":"http://c203.duotin.com/M03/3E/A3/wKgB5VdWwFmAHJ9vAEe-KIM5Fa0485.mp3","image_url":"http://c3.duotin.com/i1/DT/T4vM-Ick2vdoBoljY1B-u75-cLS8Q5B-gIgVskKUZ_s.jpg","is_new":0,"is_collect":0},{"id":1432392,"title":"残荷（雪小禅）","duration":"00:11:33","album_id":86915,"display_order":"99997","play_num":2198,"audio_32_size":"5545774","audio_64_size":5545774,"audio_32_url":"http://c203.duotin.com/M00/3E/A2/wKgB5VdWvXmAaWqUAFSfLhMKTSg263.mp3","audio_64_url":"http://c203.duotin.com/M00/3E/A2/wKgB5VdWvXmAaWqUAFSfLhMKTSg263.mp3","image_url":"http://c3.duotin.com/i1/DT/qVFJuS-ezm5zyz_bvYqGhCsptggPwO63HvwQfL33ymE.jpg","is_new":0,"is_collect":0},{"id":1432391,"title":"一颗开花的树（席慕蓉）","duration":"00:03:04","album_id":86915,"display_order":"99998","play_num":1945,"audio_32_size":"1473131","audio_64_size":1473131,"audio_32_url":"http://c203.duotin.com/M03/3E/A2/wKgB5VdWuyeAZ3rSABZ6a5KUgBA644.mp3","audio_64_url":"http://c203.duotin.com/M03/3E/A2/wKgB5VdWuyeAZ3rSABZ6a5KUgBA644.mp3","image_url":"http://c3.duotin.com/i1/DT/MIEnR_wQ6B3T3_Ni27TouxxYaO8RWnY5jazIiv5YqVY.jpg","is_new":0,"is_collect":0},{"id":1432390,"title":"只有你，那么懂我（沈从文）","duration":"00:07:53","album_id":86915,"display_order":"99999","play_num":1962,"audio_32_size":"3785767","audio_64_size":3785767,"audio_32_url":"http://c203.duotin.com/M02/3E/A2/wKgB5VdWuP2AYH1cADnEJyKrlb4140.mp3","audio_64_url":"http://c203.duotin.com/M02/3E/A2/wKgB5VdWuP2AYH1cADnEJyKrlb4140.mp3","image_url":"http://c3.duotin.com/i1/DT/pXQ5fYRxXkuZaKFDwDY6GHZk0qiKP3NmMIsRYhyGgB0.jpg","is_new":0,"is_collect":0},{"id":1431092,"title":"说给自己听（三毛）","duration":"00:21:42","album_id":86915,"display_order":"100000","play_num":1928,"audio_32_size":"10418084","audio_64_size":10418084,"audio_32_url":"http://c203.duotin.com/M00/3E/85/wKgB5VdWVhWABPWuAJ73pG3KXqo285.mp3","audio_64_url":"http://c203.duotin.com/M00/3E/85/wKgB5VdWVhWABPWuAJ73pG3KXqo285.mp3","image_url":"http://c3.duotin.com/i1/DT/gojNwfTST3ysS84xu69eNJuheMVcFaQUJr0OZZLLYCk.jpg","is_new":0,"is_collect":0}]
     */

    private ContentListBean content_list;

    public static PlayList2Data objectFromData(String str) {

        return new Gson().fromJson(str, PlayList2Data.class);
    }

    public static List<PlayList2Data> arrayPlayList2DataFromData(String str) {

        Type listType = new TypeToken<ArrayList<PlayList2Data>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public PodcastBean getPodcast() {
        return podcast;
    }

    public void setPodcast(PodcastBean podcast) {
        this.podcast = podcast;
    }

    public AlbumBean getAlbum() {
        return album;
    }

    public void setAlbum(AlbumBean album) {
        this.album = album;
    }

    public ContentListBean getContent_list() {
        return content_list;
    }

    public void setContent_list(ContentListBean content_list) {
        this.content_list = content_list;
    }

    public static class PodcastBean {
        private int id;
        private String real_name;
        private int is_v;
        private String image_url;
        private int followed_num;
        private int is_followed;

        public static PodcastBean objectFromData(String str) {

            return new Gson().fromJson(str, PodcastBean.class);
        }

        public static List<PodcastBean> arrayPodcastBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<PodcastBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getReal_name() {
            return real_name;
        }

        public void setReal_name(String real_name) {
            this.real_name = real_name;
        }

        public int getIs_v() {
            return is_v;
        }

        public void setIs_v(int is_v) {
            this.is_v = is_v;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public int getFollowed_num() {
            return followed_num;
        }

        public void setFollowed_num(int followed_num) {
            this.followed_num = followed_num;
        }

        public int getIs_followed() {
            return is_followed;
        }

        public void setIs_followed(int is_followed) {
            this.is_followed = is_followed;
        }
    }

    public static class AlbumBean {
        private String id;
        private String describe;
        private String title;
        private String image_url;
        private String content_num;
        private String subscribe_num;
        private String play_num;
        private String last_updated_time;
        private int updated_status;
        private String tag_image_url;
        private String voice_url;
        private int is_subscribe;
        private int new_content_num;
        private List<String> categories;

        public static AlbumBean objectFromData(String str) {

            return new Gson().fromJson(str, AlbumBean.class);
        }

        public static List<AlbumBean> arrayAlbumBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<AlbumBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getDescribe() {
            return describe;
        }

        public void setDescribe(String describe) {
            this.describe = describe;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImage_url() {
            return image_url;
        }

        public void setImage_url(String image_url) {
            this.image_url = image_url;
        }

        public String getContent_num() {
            return content_num;
        }

        public void setContent_num(String content_num) {
            this.content_num = content_num;
        }

        public String getSubscribe_num() {
            return subscribe_num;
        }

        public void setSubscribe_num(String subscribe_num) {
            this.subscribe_num = subscribe_num;
        }

        public String getPlay_num() {
            return play_num;
        }

        public void setPlay_num(String play_num) {
            this.play_num = play_num;
        }

        public String getLast_updated_time() {
            return last_updated_time;
        }

        public void setLast_updated_time(String last_updated_time) {
            this.last_updated_time = last_updated_time;
        }

        public int getUpdated_status() {
            return updated_status;
        }

        public void setUpdated_status(int updated_status) {
            this.updated_status = updated_status;
        }

        public String getTag_image_url() {
            return tag_image_url;
        }

        public void setTag_image_url(String tag_image_url) {
            this.tag_image_url = tag_image_url;
        }

        public String getVoice_url() {
            return voice_url;
        }

        public void setVoice_url(String voice_url) {
            this.voice_url = voice_url;
        }

        public int getIs_subscribe() {
            return is_subscribe;
        }

        public void setIs_subscribe(int is_subscribe) {
            this.is_subscribe = is_subscribe;
        }

        public int getNew_content_num() {
            return new_content_num;
        }

        public void setNew_content_num(int new_content_num) {
            this.new_content_num = new_content_num;
        }

        public List<String> getCategories() {
            return categories;
        }

        public void setCategories(List<String> categories) {
            this.categories = categories;
        }
    }

    public static class ContentListBean {
        /**
         * page_size : 100
         * page : 1
         * total_num : 19
         * total_page : 1
         * sort_type : 0
         */

        private PageBean page;
        /**
         * id : 1461946
         * title : 看取莲花净（雪小禅）
         * duration : 00:09:13
         * album_id : 86915
         * display_order : 99982
         * play_num : 1722
         * audio_32_size : 4423351
         * audio_64_size : 4423351
         * audio_32_url : http://c203.duotin.com/M04/45/87/wKgB5Vd6hamAdldXAEN-tzrA6_g755.mp3
         * audio_64_url : http://c203.duotin.com/M04/45/87/wKgB5Vd6hamAdldXAEN-tzrA6_g755.mp3
         * image_url : http://c3.duotin.com/i1/DT/-DJ97pO4fVALOIUxg59xXUnqOJ-EwEVCLHGdJs3TY_A.jpg
         * is_new : 0
         * is_collect : 0
         */

        private List<DataListBean> data_list;

        public static ContentListBean objectFromData(String str) {

            return new Gson().fromJson(str, ContentListBean.class);
        }

        public static List<ContentListBean> arrayContentListBeanFromData(String str) {

            Type listType = new TypeToken<ArrayList<ContentListBean>>() {
            }.getType();

            return new Gson().fromJson(str, listType);
        }

        public PageBean getPage() {
            return page;
        }

        public void setPage(PageBean page) {
            this.page = page;
        }

        public List<DataListBean> getData_list() {
            return data_list;
        }

        public void setData_list(List<DataListBean> data_list) {
            this.data_list = data_list;
        }

        public static class PageBean {
            private int page_size;
            private int page;
            private int total_num;
            private int total_page;
            private int sort_type;

            public static PageBean objectFromData(String str) {

                return new Gson().fromJson(str, PageBean.class);
            }

            public static List<PageBean> arrayPageBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<PageBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public int getPage_size() {
                return page_size;
            }

            public void setPage_size(int page_size) {
                this.page_size = page_size;
            }

            public int getPage() {
                return page;
            }

            public void setPage(int page) {
                this.page = page;
            }

            public int getTotal_num() {
                return total_num;
            }

            public void setTotal_num(int total_num) {
                this.total_num = total_num;
            }

            public int getTotal_page() {
                return total_page;
            }

            public void setTotal_page(int total_page) {
                this.total_page = total_page;
            }

            public int getSort_type() {
                return sort_type;
            }

            public void setSort_type(int sort_type) {
                this.sort_type = sort_type;
            }
        }

        public static class DataListBean {
            private int id;
            private String title;
            private String duration;
            private int album_id;
            private String display_order;
            private int play_num;
            private String audio_32_size;
            private int audio_64_size;
            private String audio_32_url;
            private String audio_64_url;
            private String image_url;
            private int is_new;
            private int is_collect;

            public static DataListBean objectFromData(String str) {

                return new Gson().fromJson(str, DataListBean.class);
            }

            public static List<DataListBean> arrayDataListBeanFromData(String str) {

                Type listType = new TypeToken<ArrayList<DataListBean>>() {
                }.getType();

                return new Gson().fromJson(str, listType);
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getDuration() {
                return duration;
            }

            public void setDuration(String duration) {
                this.duration = duration;
            }

            public int getAlbum_id() {
                return album_id;
            }

            public void setAlbum_id(int album_id) {
                this.album_id = album_id;
            }

            public String getDisplay_order() {
                return display_order;
            }

            public void setDisplay_order(String display_order) {
                this.display_order = display_order;
            }

            public int getPlay_num() {
                return play_num;
            }

            public void setPlay_num(int play_num) {
                this.play_num = play_num;
            }

            public String getAudio_32_size() {
                return audio_32_size;
            }

            public void setAudio_32_size(String audio_32_size) {
                this.audio_32_size = audio_32_size;
            }

            public int getAudio_64_size() {
                return audio_64_size;
            }

            public void setAudio_64_size(int audio_64_size) {
                this.audio_64_size = audio_64_size;
            }

            public String getAudio_32_url() {
                return audio_32_url;
            }

            public void setAudio_32_url(String audio_32_url) {
                this.audio_32_url = audio_32_url;
            }

            public String getAudio_64_url() {
                return audio_64_url;
            }

            public void setAudio_64_url(String audio_64_url) {
                this.audio_64_url = audio_64_url;
            }

            public String getImage_url() {
                return image_url;
            }

            public void setImage_url(String image_url) {
                this.image_url = image_url;
            }

            public int getIs_new() {
                return is_new;
            }

            public void setIs_new(int is_new) {
                this.is_new = is_new;
            }

            public int getIs_collect() {
                return is_collect;
            }

            public void setIs_collect(int is_collect) {
                this.is_collect = is_collect;
            }
        }
    }
}
